namespace scheduleMVC.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Task1 : DbMigration
    {
        public override void Up()
        {
            
            
                   
            CreateTable(
                "dbo.Task",
                c => new
                    {
                        TasksID = c.String(nullable: false, maxLength: 128),
                        Name = c.String(),
                        StartDate = c.DateTime(nullable: false),
                        DueDate = c.DateTime(nullable: false),
                        Complete = c.Int(),
                        Description = c.String(),
                        Priority = c.Int(),
                        Status = c.String(),
                        AssignementDate = c.DateTime(nullable: false),
                        CreationDate = c.DateTime(nullable: false),
                        Employee_ID = c.Int(nullable: false),
                        CustomerID = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.TasksID)
                .ForeignKey("dbo.Customer", t => t.CustomerID)
                .ForeignKey("dbo.Employee", t => t.Employee_ID)
                .Index(t => t.Employee_ID)
                .Index(t => t.CustomerID);
            
           
            
        }
        
        public override void Down()
        {
           
        }
    }
}
